package com.stone.service.impl;

import com.stone.rpc.bean.UserDTO;
import com.stone.rpc.service.UserService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Component;

@DubboService(version = "1.0.0",timeout = 1000)
public class UserServceImpl implements UserService {
    @Override
    public UserDTO getUser(Integer id) {
        UserDTO userDTO=new UserDTO();
        userDTO.setId(id);
        userDTO.setName("没有名字"+id);
        userDTO.setAddress("没有地址"+id);
        return userDTO;
    }
}
